package com.hiof.servercommunication.background.job;

import com.hiof.servercommunication.RestFulServiceManager;
import com.hiof.servercommunication.exception.NetworkException;
import com.hiof.servercommunication.exception.ServerException;
import com.hiof.servercommunication.receive.beans.Packet;
import com.hiof.servercommunication.receive.beans.TeamMemberLocationPacket;
import com.hiof.settings.user.UserConfiguration;

/**
 * Created by IntelliJ IDEA.
 * User: manish
 * Date: 4/1/12
 * Time: 12:00 PM
 * To change this template use File | Settings | File Templates.
 */
public class TeamMemberLocationJob extends AbstractJob {

    @Override
    protected Packet connect2Server() throws ServerException, NetworkException {
        TeamMemberLocationPacket teamMemberLocationPacket = RestFulServiceManager.getInstance().getTeamMemberLocationInfoOfSupport(UserConfiguration.getInstance().getAttendantId());
        return teamMemberLocationPacket;
    }
}
